package cc.yugu.yhdw.common.protocol.msg05;

import cc.yugu.yhdw.common.protocol.MsgCode;
import cc.yugu.yhdw.common.protocol.msg03.Msg031;
import io.netty.buffer.ByteBuf;

public class Msg051000009 extends Msg051 {


    public String cabinetId;
    public byte fst;
    public byte fot;
    public byte pt;
    public byte rpt;

    @Override
    public int getMsgCode() {
        return MsgCode.MSG_051000009.getCode();
    }

    @Override
    public void readData(ByteBuf buffer) {
        cabinetId = readString(buffer);
        fst = buffer.readByte();
        fot = buffer.readByte();
        pt = buffer.readByte();
        rpt = buffer.readByte();
    }

    @Override
    public void writeData(ByteBuf buffer) {
        writeString(buffer, cabinetId);
        buffer.writeByte(fst);
        buffer.writeByte(fot);
        buffer.writeByte(pt);
        buffer.writeByte(rpt);
    }
}
